package org.example.tool;

import lombok.Data;

/**
 * @author Axin
 * @summary 一个User类定义
 * （Ps：Data 是lombok组件提供的注解，简化了get set等等的约定代码）
 * @since 2020-09-20
 */
@Data
public class User2 {

    private String email;

    private String name;

    private String position;

    private Address2 address;


    public User2(String email, String name) {
        this.email = email;
        this.name = name;
    }


}

@Data
class Address2 {

    private Country country;

    // ...
}

@Data
class Country2 {

    private String isocode;
    // ...
}



